
(function (modules) {
    function require(path) {
        const module = {
            exports: {}
        }
        modules[path](module, module.exports, require)
        return module.exports
    }
    require('./src/index')
})({
    './src/b': function (module, exports, require) {
        const a = 10;
        const b = 20;
        module.exports = {
            a,
            b,
        };
    },
    './src/index': function (module, exports, require) {
        const b = require('./src/b')
        console.log('a');
        console.log(b);
    }
})